package com.hotelbooking.db.define;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="TablePartUnit")
public class TablePartUnit {
	private String tableName;
	private int partUnit;

	public TablePartUnit(String tableName, int partUnit) {
		super();
		this.tableName = tableName;
		this.partUnit = partUnit;
	}

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public String getTableName() {
		return tableName;
	}

	@Column(name="PartUnit")
	public int getPartUnit() {
		return partUnit;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public void setPartUnit(int partUnit) {
		this.partUnit = partUnit;
	}
	
	public static int getTablePartUnit(String tableName){
		return 100;
	}

}
